export default {
  masterPendingOrders (state) {
    return state.masterOrders.filter(x => x.lsStatus === '2')
  },
  masterCompletedOrders (state) {
    return state.masterOrders.filter(x => x.lsStatus === '6')
  },
  role (state) {
    return state.userInfo.roleNames[0].split('_')[0]
  },
  isManager (state){
    return state.userInfo.roleNames[0].split('_')[0] === 'manager'
  },
  isWorker (state){
    return state.userInfo.roleNames[0].split('_')[0] === 'outworker'
  }
}
